Ext.onReady(function() {
	Ext.create('Ext.window.Window', {
		title: 'Hello',
		height: 200,
		width: 400,
		layout: 'fit',
		modal: true,
		icon: '/js/extjs/resources/image/flag_orange.gif',
		constrainHeader: true,
		listeners: {
			'beforeclose': function() {
				alert(111);
			}

		}
	}).show();
});